package com.maze.activity.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.maze.common.annotation.Excel;
import com.maze.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 报名记录对象 registrations
 * 
 * @author xixi.wang
 * @date 2025-03-30
 */
public class Registrations extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 报名记录唯一标识 */
    private Long regId;

    /** 关联的活动ID */
    @Excel(name = "关联的活动ID")
    private Long activityId;

    /** 参与用户的ID */
    @Excel(name = "参与用户的ID")
    private Long userId;

    /** 报名时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "报名时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date registrationTime;

    public void setRegId(Long regId) 
    {
        this.regId = regId;
    }

    public Long getRegId() 
    {
        return regId;
    }
    public void setActivityId(Long activityId) 
    {
        this.activityId = activityId;
    }

    public Long getActivityId() 
    {
        return activityId;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setRegistrationTime(Date registrationTime) 
    {
        this.registrationTime = registrationTime;
    }

    public Date getRegistrationTime() 
    {
        return registrationTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("regId", getRegId())
            .append("activityId", getActivityId())
            .append("userId", getUserId())
            .append("registrationTime", getRegistrationTime())
            .toString();
    }
}
